<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body th:fragment="hasbei_top" >
<div class="content-top"><!--th:if="${auto==''}"-->
    <div class="content-top-info">
        <div class="content-top-left">
            <div class="left-logo">
                <a href="/" class="logo-info" target="_self"><img src="/icon/logo.png" alt="有贝口腔网"></a>
            </div>
            <ul class="right-list">
                <li th:class="${type == 'zx'?'right-list-active':''}">
                    <a href="/consult/main" target="_self">
                        <img src="/icon/news-icon.png" alt="有贝口腔网">
                        <span>资讯</span>
                    </a>
                </li>
                <li th:class="${type == 'qa'?'right-list-active':''}">
                    <a href="/answers/main/-1/0" target="_self">
                        <img src="/icon/qa-icon.png" alt="有贝口腔网">
                        <span>问答</span>
                    </a>
                </li>
            </ul>
        </div>
        <form action="http://www.hasbei.com/search" method="get">
            <div class="content-top-right">
                <div class="search-input">
                    <img class="search-icon" src="/icon/icon_Search.png">
                    <input class="top-search" type="text" name="kw" placeholder="请输入资讯、问题搜索" value="">
                    <input class="search-sub" type="submit" value="搜索">
                </div>

                <div class="land-regist">
                    <a class="top-land" href="/login">登录</a>
                    <span></span>
                    <a class="top-regist" href="/login/register">注册</a>
                </div>

            </div>
        </form>
    </div>
</div>
<!--<script>
    $(function () {
        var auto=getCookie("auto_login");

        if(auto!=""){
            $("#hasbie-top").remove()
        }else{
            $("#hasbie-top-user").remove()
        }
    })

    function getCookie(c_name) {
        //这里的c_name为setCookie()中name的key值
        if (document.cookie.length > 0) {
            c_start = document.cookie.indexOf(c_name + "=");
            if (c_start != -1){
                c_start = c_start + c_name.length + 1;
                c_end = document.cookie.indexOf(";", c_start);
                if (c_end == -1)
                    c_end = document.cookie.length;
                return unescape(document.cookie.substring(c_start, c_end));
            }
        }
        return ""
    }
</script>-->
</body>
</html>